{% extends "base.html" %}

{% block content %}

{% load url from future %}
{% if latest_poll_list %}
    {% for poll in latest_poll_list %}
    <div class="well">
		<h1><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a></h1>
		{{ poll.deadline }}
		{% for tag in poll.tags.get_query_set %}
			{{ tag.name }}
		{% endfor %}
	</div>
    {% endfor %}
{% else %}
    <p>No polls are available.</p>
{% endif %}
	
{% endblock %}
